<?php

class My_Validate_Authorize extends Zend_Validate_Abstract {
    
    
    
    const NOT_AUTHORIZED = 'notAuthorzied';
    
    protected $_authAdapter;
    protected $_messageTemplates = array(self::NOT_AUTHORIZED => 'No users with those details exist');
    
    public function getAuthAdapter() {
        return $this->_authAdapter;
    }
    
    public function isValid($value, $context = null) {
    	$value = (string) $value;
    	$this->_setValue($value);
    	
    	if (is_array($context)) {
    	    if (!isset($context['password'])) {
    	        return false;
    	    }
    	}
    	
    	
    	
    }
    
    
}